<?php

class Application_Form_Newsletter extends Zend_Form {

    public function init() {
        $this->setAction(BASE_URL . 'newsletter');
        $this->setMethod('POST');
        $this->setName('form-newsletter');

        $email = new Zend_Form_Element_Text('email');
        $email->setAttrib('id', 'email');
        $email->setAttrib('title', 'Cadastre seu e-mail e receba nossos informativos.');
        $email->setLabel('Cadastre seu e-mail e receba nossos informativos.');

        $this->addElement($email);

        $submit = new Zend_Form_Element_Submit();
        $submit->setAttrib('value', 'enviar');

        $this->addElement($submit);
    }

    public function setView(\Zend_View_Interface $view = null) {
        parent::setView($view);
    }

}

